from django.contrib import admin
from web.models import *

class CategoryAdmin(admin.ModelAdmin):
	list_display = ('name', 'url_name', 'entries_quantity', 'links_quantity')
	ordering = ('name',)

class EntryAdmin(admin.ModelAdmin):
	list_display = ('name', 'type', 'is_active', 'created_at', 'updated_at')

class LinkAdmin(admin.ModelAdmin):
	pass

class CommentAdmin(admin.ModelAdmin):
	list_display = ('autor', 'entry', 'email', 'web', 'created_at')

admin.site.register(Category, CategoryAdmin)
admin.site.register(Entry, EntryAdmin)
admin.site.register(Link, LinkAdmin)
admin.site.register(Comment, CommentAdmin)

